/*
SteelNzb
Copyright (C) 2008  Wessel v. Staal

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#ifndef MANAGER_INCLUDED
#define MANAGER_INCLUDED

#define MANAGER_VERSION "1.00"

void* manager_createState(char* serveraddress, int port, int remoteControl, int remoteControlPort);
int manager_download(void* managerstate, char* nzbfile);
void manager_freeState(void* state);

void manager_setUsername(void* state, const char* username);
void manager_setPassword(void* state, const char* password);
void manager_setHost(void* state, const char* host);
void manager_setAuthentication(void* state, int authenticate);
void manager_setMaxConnectionTries(void* state, int tries);
void manager_setMaxArticleTries(void* state, int tries);
void manager_setMaxThreads(void* state, int maxthreads);
void manager_setPort(void* state, int port);
void manager_setDownloadPath(void* state,const char* downloadpath);
void manager_setNzbPath(void* state,const char* nzbpath);
void manager_setFileCombine(void* state, int combine);
void manager_setYEnc(void* state, int yenc);
void manager_setPause(void* state, int pause);
void* manager_getStats(void* state);

#endif
